package com.longlonggo.es;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

/**
 * @Description:
 * @author：me@longlonggo.com
 * @Date: 2019/8/29 2019/8/29
 */
@Data
@Document(indexName = "article_info", type = "doc")
public class Article {
    @Id
    private Integer id;

    private String title;

    private String text;

    private Date createtime;

    private String author;

}
